let axios = require("axios");

async function getGasPrice(key = "08dbd91168fc44e7a7c76de363ff7137") {
    return await axios
        .get(
            `https://bscgas.info/gas?apikey=${key}`,
            { responseType: "json" }
        )
        .then((response) => {
            return {
                fast: response.data.fast,
                fastest: response.data.instant,
                safeLow: response.data.standard
            };
        });
}
exports.getGasPrice = getGasPrice